package com.gsnd.gsnd21study.service.impl;

import com.gsnd.gsnd21study.entity.DRO.RoleAndUser;
import com.gsnd.gsnd21study.mapper.SysRoleMapper;
import com.gsnd.gsnd21study.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service // service层中一定要在impl的实现类上添加该注解
public class SysRoleServiceImpl implements SysRoleService {
    @Autowired
    SysRoleMapper sysRoleMapper;

    @Override
    public RoleAndUser getRoleAndUserByRoleId(Long roleId) {
        return sysRoleMapper.selectRoleAndUserByRoleId(roleId);
    }
}
